package com.seahorse.youliao.service;

import com.seahorse.youliao.entity.wechat.WeChatResultEntity;

/**
 * @description: 微信支付service
 * @author: Mr.Song
 * @create: 2020-03-07 17:23
 **/
public interface WeChatPayService {


    /**
     * 下单生成二维码
     * @param orderNo
     * @return 二维码地址
     * @throws Exception
     */
    String createTradeQRCode(String orderNo) throws Exception;

    /**
     * 微信退款
     * @param orderNo
     * @return
     * @throws Exception
     */
    Boolean tradeRefund(String orderNo) throws Exception;

    /**
     * 微信支付查询
     * @param orderNo
     * @return
     * @throws Exception
     */
    Boolean tradeQuery(String orderNo) throws Exception;

    /**
     * 微信退款回调
     * @param builder
     * @return
     */
    WeChatResultEntity refundCallBack(StringBuilder builder);
}
